package com.xd.cloud.entity.vehicle;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Table;

import com.xd.cloud.entity.BaseEntity;

/**
 * @author wangtao
 * @class_name VehicleInfo类
 * @description 车辆信息
 * @create 2017/12/6
 */
@Entity
@Table(name = "tb_vehicle")
public class VehicleInfo extends BaseEntity {

    //车牌号，唯一标识
    private String vehid;
    //司机id
    private Integer driveid;
    //车辆简称
    private String vehname;
    //车辆图标，区分货车或者客运车
    private Integer vehicon;
    //车辆用途
    private String vehuse;
    //车辆等级
    private String vehgrade;
    //车辆品牌
    private String vehband;
    //车辆颜色
    private String vehcolor;
    //车牌颜色
    private String platetype;
    //使用状态：0为正常，1为维修，2为停用，3为欠费
    private Integer status;
    //所属公司ID
    private Integer companyid;
    //最后上线时间
    private String recentytime;
    //安装时间
    private String installtime;
    //合约开始日
    private String paybegin;
    //合约期限（以月为单位）
    private Integer payperiod;
    //核定载人数
    private Integer approvednumber;
    //核定载重量
    private double approvedload = 0;
    //记录创建时间
    private Date createtime;
    //记录更新时间
    private Date updatetime;
    //车辆类型
    private int vehtype;
    //车辆对应的设备号（先这样处理，如果需求可以有多个设备再调整）
    private String devicecode;
	
	public String getDevicecode() {
		return devicecode;
	}
	public void setDevicecode(String devicecode) {
		this.devicecode = devicecode;
	}
	public int getVehtype() {
		return vehtype;
	}
	public void setVehtype(int vehtype) {
		this.vehtype = vehtype;
	}
	public String getVehid() {
		return vehid;
	}
	public void setVehid(String vehid) {
		this.vehid = vehid;
	}
	public Integer getDriveid() {
		return driveid;
	}
	public void setDriveid(Integer driveid) {
		this.driveid = driveid;
	}
	public String getVehname() {
		return vehname;
	}
	public void setVehname(String vehname) {
		this.vehname = vehname;
	}
	public Integer getVehicon() {
		return vehicon;
	}
	public void setVehicon(Integer vehicon) {
		this.vehicon = vehicon;
	}
	public String getVehuse() {
		return vehuse;
	}
	public void setVehuse(String vehuse) {
		this.vehuse = vehuse;
	}
	public String getVehgrade() {
		return vehgrade;
	}
	public void setVehgrade(String vehgrade) {
		this.vehgrade = vehgrade;
	}
	public String getVehband() {
		return vehband;
	}
	public void setVehband(String vehband) {
		this.vehband = vehband;
	}
	public String getVehcolor() {
		return vehcolor;
	}
	public void setVehcolor(String vehcolor) {
		this.vehcolor = vehcolor;
	}
	public String getPlatetype() {
		return platetype;
	}
	public void setPlatetype(String platetype) {
		this.platetype = platetype;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public Integer getCompanyid() {
		return companyid;
	}
	public void setCompanyid(Integer companyid) {
		this.companyid = companyid;
	}
	public String getRecentytime() {
		return recentytime;
	}
	public void setRecentytime(String recentytime) {
		this.recentytime = recentytime;
	}
	public String getInstalltime() {
		return installtime;
	}
	public void setInstalltime(String installtime) {
		this.installtime = installtime;
	}
	public String getPaybegin() {
		return paybegin;
	}
	public void setPaybegin(String paybegin) {
		this.paybegin = paybegin;
	}
	public Integer getPayperiod() {
		return payperiod;
	}
	public void setPayperiod(Integer payperiod) {
		this.payperiod = payperiod;
	}
	public Integer getApprovednumber() {
		return approvednumber;
	}
	public void setApprovednumber(Integer approvednumber) {
		this.approvednumber = approvednumber;
	}
	public double getApprovedload() {
		return approvedload;
	}
	public void setApprovedload(double approvedload) {
		this.approvedload = approvedload;
	}
	public Date getCreatetime() {
		return createtime;
	}
	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}
	public Date getUpdatetime() {
		return updatetime;
	}
	public void setUpdatetime(Date updatetime) {
		this.updatetime = updatetime;
	}
}